package cn.tedu.person.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

@Data
public class PersonInsertDTO implements Serializable {

    @ApiModelProperty(value = "业主名称", required = true, example = "张三")
    @NotNull(message = "必须提交名称")
    private String name;

    private String nickname;

    @ApiModelProperty(value = "性别", required = true)
    @NotNull(message = "必须提交性别")
    private String gender;

    @ApiModelProperty(value = "业主名称", required = true)
    @NotNull(message = "必须提交电话号")
    private String tel;

    @ApiModelProperty(value = "业主地址", required = true)
    @NotNull(message = "必须提交地址")
    private Integer addressId;

    @ApiModelProperty(value = "业主车牌", required = true)
    @NotNull(message = "必须提交车牌")
    private Integer carNumberId;

    @ApiModelProperty(value = "业主照片", required = true)
    @NotNull(message = "必须提交照片")
    private String url;
}
